package cn.yoyo.entity;

import java.sql.Date;

public class Order {
    private int ordid;
    private int uid;
    private Double amount;
    private int ispay;
    private Date tpay;
    private String address;
    private String phone;
    private Date tcreate;
    private String shopno;

    public Order() {
    }

    public Order(int ordid, int uid, Double amount, int ispay, Date tpay, String address, String phone, Date tcreate, String shopno) {
        this.ordid = ordid;
        this.uid = uid;
        this.amount = amount;
        this.ispay = ispay;
        this.tpay = tpay;
        this.address = address;
        this.phone = phone;
        this.tcreate = tcreate;
        this.shopno = shopno;
    }

    public int getOrdid() {
        return ordid;
    }

    public void setOrdid(int ordid) {
        this.ordid = ordid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public int getIspay() {
        return ispay;
    }

    public void setIspay(int ispay) {
        this.ispay = ispay;
    }

    public Date getTpay() {
        return tpay;
    }

    public void setTpay(Date tpay) {
        this.tpay = tpay;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getTcreate() {
        return tcreate;
    }

    public void setTcreate(Date tcreate) {
        this.tcreate = tcreate;
    }

    public String getShopno() {
        return shopno;
    }

    public void setShopno(String shopno) {
        this.shopno = shopno;
    }

    @Override
    public String toString() {
        return "Order{" +
                "ordid=" + ordid +
                ", uid=" + uid +
                ", amount=" + amount +
                ", ispay=" + ispay +
                ", tpay=" + tpay +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                ", tcreate=" + tcreate +
                ", shopno='" + shopno + '\'' +
                '}';
    }
}
